<?php
use yii\helpers\Html;
use yii\helpers\Url;

/* @var $this \yii\web\View */
/* @var $model \app\models\ActivityApply */

?>
<?php foreach ($models as $model): ?>
    <div class="section-view mb15" data-href="<?= Url::to(['resume/', 'uid' => $model->uid, 'apply_id' => $model->id]); ?>">
        <div class="txt-con">
            <h5>
                <span class="mui-pull-right">
                    <?= date('Y-m-d', $model->ctime); ?>
                </span>
                <span class="t">报名项目</span><?= Html::encode($model->activity->title); ?>
            </h5>

            <div class="con">
                <div class="img-media">
                    <div class="img">
                        <img src="<?= $model->user->getAvatar(); ?>"/>
                    </div>
                    <div class="cell">
                        <h4><?= Html::encode($model->uname); ?></h4>
                        <div>
                            <p><?= $model->user->profile->_statusName(\app\models\User::$sexLabels, 'sex'); ?>　<?= Html::encode($model->school); ?></p>
                        </div>
                        <span class="status"><?= $model->_statusLabel(); ?></span>
                    </div>
                </div>
            </div>
        </div>
    </div>
<?php endforeach; ?>
